cod_inflict_damage

Syntax

native cod_inflict_damage(attacker, victim, Float:damage, Float:factor = 0.5, flags = 0);

Usage

attacker
Attacker index
victim
Victim index
damage
Damage amount to make
factor
Intelligence bonus for damage
flags
Damage flags in DMG_* format (DMG_CODSKILL flag will be added)

Description

Makes damage as player to other player.

Note

Damage will be blocked if victim has god mode or resistance.

Return

This function has no return value.